<%--<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>--%>
<%--
  Created by IntelliJ IDEA.
  User: login
  Date: 2023/9/7
  Time: 15:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
<head>
    <title>新闻页面</title>
</head>
<body>
<h3>新闻页面</h3>
<%--el表达式--%>
${newsid}

<table border="1">
    <tr>
        <th>新闻id</th>
        <th>新闻标题</th>
        <th>新闻内容</th>
    </tr>
    <c:forEach var="test" items="${list}">
        <tr>
            <th>${test.id}</th>
            <th>${test.title}</th>
            <th>${test.content}</th>
        </tr>
    </c:forEach>
</table>

</body>
</html>
